package Exc.service.impl;

import Exc.domain.*;
import Exc.mapper.IpMonitoringMapper;
import Exc.service.IIpMonitoringService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * The type Ip monitoring service.
 * 监控代码的业务层的实现类，调用相关方法
 *
 * @author fengke
 */
@Service
public class IpMonitoringServiceImpl implements IIpMonitoringService {
    @Autowired
    private IpMonitoringMapper ipMonitoringMapper;

    @Override
    public List<PortAndProtocol> listRedCode() {
        List<PortAndProtocol> list = ipMonitoringMapper.listRedCode();
        return list;
    }

    @Override
    public List<PortAndProtocol> listSmurf() {
        return ipMonitoringMapper.listSmurf();
    }

    @Override
    public List<PortAndIpCount> getPortAndIpCount() {
        return ipMonitoringMapper.getPortAndIpCount();
    }

    @Override
    public List<PortAndProtocol> listLand() {
        return ipMonitoringMapper.listLand();
    }

    @Override
    public List<IpAndPortCount> getIpAndPortCount() {
        return ipMonitoringMapper.getIpAndPortCount();
    }

    @Override
    public List<PortAndProtocol> listSingleFlow() {
        return ipMonitoringMapper.listSingleFlow();
    }

    @Override
    public List<PortAndProtocol> listOpasoft() {
        return ipMonitoringMapper.listOpasoft();
    }

    @Override
    public List<PortAndProtocol> listSlammer() {
        return ipMonitoringMapper.listSlammer();
    }

    @Override
    public List<PortAndProtocol> listShockWave() {
        return ipMonitoringMapper.listShockWave();
    }

    @Override
    public List<PortAndProtocol> listWelchia() {
        return ipMonitoringMapper.listWelchia();
    }

    @Override
    public List<PortAndProtocol> listBlaster() {
        return ipMonitoringMapper.listBlaster();
    }

    @Override
    public List<FromIpTop> listTop() {
        return ipMonitoringMapper.listTop();
    }

    @Override
    public List<Blackmail> listBlackmail() {
        List<Blackmail> list = ipMonitoringMapper.listBlackmail();
        return list;
    }

    @Override
    public List<Blackmail> listDns() {
        List<Blackmail> dns = ipMonitoringMapper.listDns();
        return dns;
    }

    @Override
    public List<Dos> listDos() {
        List<Dos> list = ipMonitoringMapper.listDos();
        return list;
    }

    @Override
    public List<DDos> listDDos() {
        List<DDos> list = ipMonitoringMapper.listDDos();
        return list;
    }

    @Override
    public void delete(String ip) {
        ipMonitoringMapper.delete(ip);
    }

    @Override
    public void deleteDDos(String ip) {
        ipMonitoringMapper.deleteDDos(ip);
    }
}
